import { createRouter, createWebHistory } from 'vue-router'
import {constantRoutes} from './routes.ts'


const router = createRouter({
    history: createWebHistory(),
    routes:constantRoutes,
    // 解决路由跳转后页面回到顶部的问题
    scrollBehavior() {
        return {
            left: 0,
            top: 0
        }
    }
})

export default router

